var targetTexture:GUITexture;

var totalProgress:float = 1;
private var curProgress:float = 0;
private var originalWidth:float;
function Start(){
	originalWidth = targetTexture.pixelInset.width;
	
	while(curProgress < totalProgress){
		curProgress += 0.1;
		targetTexture.pixelInset.width = originalWidth * curProgress;
		
		yield WaitForSeconds(1);
			
		Debug.Log(curProgress);
	}
}